import { useNavigate } from 'react-router-dom'

export default () => {
  const navigate = useNavigate()
  const goBack = () => {
    navigate(-1)
  }
  return (
    <>
      <h2>404 not found</h2>
      <button onClick={goBack}>返回</button>
    </>
  )
}
